package com.util.config.druid;

/**
 * Copyright
 *
 * @Author WuHuang
 * @Date 2021/11/12
 */

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * druid配置文件
 *
 * @author yuanyao@wistronits.com
 * create on 2018/7/20 上午10:42
 */
@Data
@ConfigurationProperties(prefix = "spring.datasource.druid")
public class DruidDataSourceProperties {

    private String driverClassName;
    private String url;
    private String username;
    private String password;

    private int initialSize;
    private int minIdle;
    private int maxActive = 100;
    private long maxWait;
    private long timeBetweenEvictionRunsMillis;
    private long minEvictableIdleTimeMillis;
    private String validationQuery;
    private boolean testWhileIdle;
    private boolean testOnBorrow;
    private boolean testOnReturn;
    private boolean poolPreparedStatements;
    private int maxPoolPreparedStatementPerConnectionSize;
    private String filters;

}

